package togetherOne.dao;

import java.util.ArrayList;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import togetherOne.vo.BoardVo;

public class BoardDaoImpl extends SqlMapClientDaoSupport implements BoardDao {
	public ArrayList<BoardVo> getBoardlist(String boardCate){
		return (ArrayList<BoardVo>) getSqlMapClientTemplate().queryForList("getBoardlist", boardCate);
	}
	public void deleteBoard(String boardNo){
		getSqlMapClientTemplate().delete("deleteBoard", boardNo);
	}
	public void updateByboardNo(String boardNo){
		getSqlMapClientTemplate().update("updateByboardNo", boardNo);
	}
	public void insertBoard(BoardVo board){
		getSqlMapClientTemplate().insert("insertBoard", board);
	}
}
